// Constant Definition
#define  MAX_FILE_SIZE	0x10000000	// Maximum file size allowed in this program, about 268M

// Card Access Functions
bool CardOpen  (void);
bool CardClose (void);
bool CardRead  (unsigned long, unsigned long, unsigned char*);
bool CardWrite (unsigned long, unsigned long, unsigned char*);

// FAT32 Functions 
bool FAT32Init   (void);
bool FAT32Read   (unsigned char *fileName);
bool FAT32Write  (unsigned char *fileName);
bool FAT32Delete (unsigned char *fileName);
bool FAT32Verify (unsigned char *fileName);

unsigned long getFirstSector (unsigned long clusterNumber);
unsigned long getSetNextCluster (unsigned long clusterNumber, unsigned char get_set, unsigned long clusterEntry);
unsigned long searchNextFreeCluster (unsigned char next, unsigned long startCluster);
bool listfiles (void);